home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
brent_cc.lha
/
brent_cc
/
vfminbr.dat
< prev
next >
Wrap
Text File
|
1993-08-08
|
918b
|
33 lines
-------------------------------------------------------------------------------
Testing the Brent's one-dimensional minimizer
For function x^3 - 2*x - 5
the minimum over [0,1] is found to be at 8.164965811e-01
Min function value found -6.0887e+00
No. of iterations 11
Exact min is at 0.81650
For function (x^3 - 2*x - 5)^2
the minimum over [2,3] is found to be at 2.094551483e+00
Min function value found 2.7186e-16
No. of iterations 14
Exact root is 2.0945514815
For function (cos(x)-x)^2 - 2
the minimum over [2,3] is found to be at 2.000000048e+00
Min function value found 3.8378e+00
No. of iterations 35
For function (cos(x)-x)^2 - 2
the minimum over [-1,3] is found to be at 7.390851269e-01
Min function value found -2.0000e+00
No. of iterations 17
For function (sin(x)-x)^2 + 1
the minimum over [-1,3] is found to be at -3.815499176e-03
Min function value found 1.0000e+00
No. of iterations 59